package com.hullunyingshi.until;

import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

/**
 * @QQ 792442257
 * @description 
 * @createDate 2018年4月28日
 */
@Getter
@Setter
public class ControllerResult implements Serializable {

    //返回http状态码
    private String code;

    //返回状态描述
    private String desc;

    //返回数据
    private Object data;

    public ControllerResult() {
	    super();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public ControllerResult(String code) {
        super();
        this.code = code;
    }

    public ControllerResult(String code, String desc) {
        super();
        this.code = code;
        this.desc = desc;
    }

    public ControllerResult(String code, Object data) {
        super();
        this.code = code;
        this.data = data;
    }

    public ControllerResult(String code, String desc, Object data) {
        super();
        this.code = code;
        this.desc = desc;
        this.data = data;
    }

}
